media-gstreamer: Provide fallback mode for playback
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 24 May 2021 08:24:39 +0000 (16:24 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 24 May 2021 11:04:37 +0000 (19:04 +0800)
commit16f307b305bf6b2c1ccffe5c1b9b8f6e74bf15fa
treecc86b8e39c8ea282152f5af772d582948052c270
parentccdec5da7788a4d84432cb2deb91ae851ca30c99
media-gstreamer: Provide fallback mode for playback

Make the "gl-context" property of the GstGLSink readable as well so that
we can query whether the GstGLContext sharing really succeeded.  If it
did, then we proceed to playback our video using the glimagesink as we
did before.  If it didn't, throw out the GtkGstSink we were creating, and
re-create the GtkGstSink without the "gl-context" property, meaning that
we won't be using the glimagesink in this case.
modules/media/gtkgstpaintable.c
modules/media/gtkgstsink.c